﻿@model SoftHotel.Models.sTrabajador

@{
    ViewBag.Title = "Trabajadores: Buscar";
}

<h2>Trabajadores</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Agregar</legend>

        <p>
            <input type="submit" value="Agregar" name="postAction"/>
        </p>
    </fieldset>
    <fieldset>
        <legend>Buscar</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.tipoDoc)
        </div>
        <div class="editor-field">
            @Html.DropDownList("tipoDoc", String.Empty)
            @Html.ValidationMessageFor(model => model.tipoDoc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.numDoc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.numDoc)
            @Html.ValidationMessageFor(model => model.numDoc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nombres)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombres)
            @Html.ValidationMessageFor(model => model.nombres)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.apellidoPaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apellidoPaterno)
            @Html.ValidationMessageFor(model => model.apellidoPaterno)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.apellidoMaterno)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apellidoMaterno)
            @Html.ValidationMessageFor(model => model.apellidoMaterno)
        </div>
         <div class="editor-label">
            @Html.LabelFor(model => model.estado)
        </div>
        <div class="editor-field">
            @Html.DropDownList("estado")
            @Html.ValidationMessageFor(model => model.estado)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.idSede)
        </div>
        <div class="editor-field">
            @Html.DropDownList("idSede", String.Empty)
            @Html.ValidationMessageFor(model => model.idSede)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.cargo)
        </div>
        <div class="editor-field">
            @Html.DropDownList("cargo", String.Empty)
            @Html.ValidationMessageFor(model => model.cargo)
        </div>

       
        <div class="editor-label">
            @Html.LabelFor(model => model.horario)
        </div>
        <div class="editor-field">
            @Html.DropDownList("horario", String.Empty)
            @Html.ValidationMessageFor(model => model.horario)
        </div>

        <p>
            <input type="submit" value="Buscar" name="postAction"/>
        </p>
    </fieldset>
}

